package com.yc.navy.goods.product.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import com.yc.navy.goods.dto.BalanceInfoDTO;
import com.yc.navy.goods.dto.ProductDTODTO;



@FeignClient(name="product-server", fallback = IProductFeignClient.ProductFeignClient.class)
public interface IProductFeignClient {
	/**
	 * 修改库存
	 * @param balanceInfoDTO
	 * @return
	 */
	@RequestMapping("/balances/updateNum")
	Integer updateNum(@RequestBody BalanceInfoDTO balanceInfoDTO);
	
	@RequestMapping("/products/checkshopid")
	Integer checkshopid(@RequestBody ProductDTODTO productDTODTO);
	
	public static class ProductFeignClient implements IProductFeignClient{

		@Override
		public Integer updateNum(BalanceInfoDTO balanceInfoDTO) {
			return -1;
		}

		@Override
		public Integer checkshopid(ProductDTODTO productDTODTO) {
			return -1;
		}


		
	}
}
